<?php
/*显示关注数量*/
include_once ("../sql_connect.php");
include_once ("../msg_redirect.php");

$load_content = "";
$c_name = $_POST[name];
$my_sql = mysql_query("select u_no from user_info where u_name = '$c_name'", $connection);
$my_result = mysql_fetch_array($my_sql);
$c_no = $my_result[u_no];

$show_sql = mysql_query ( "select max(c_num) from concerns where u_no='$c_no'", $connection );
$show_result = mysql_fetch_array ( $show_sql );
$my_data = $show_result [0];
$load_content .=  "关注".$my_data."&nbsp;&nbsp;|&nbsp;&nbsp;粉丝";

/*显示粉丝数量*/
$show_sql = mysql_query ( "select max(f_num) from concerns where c_no='$c_no'", $connection );
$show_result = mysql_fetch_array ( $show_sql );
$my_data = $show_result [0];
$load_content .= $my_data."&nbsp;&nbsp;|&nbsp;&nbsp;微博";

/*显示微博数量*/
$show_sql = mysql_query ( "select max(w_num) from weibo where u_no='$c_no'", $connection );
$show_result = mysql_fetch_array ( $show_sql );
$my_data = $show_result [0];
$load_content .= $my_data."&nbsp;&nbsp;";

echo $load_content;
?>